
local M = {}

M.str_split = function(delimiter, text)
    return vim.split(text,delimiter)
end

M.get_alphabet = function()
    return 'asdhlwerxcbgft1234567890'
end

M.starts_with = function(line,substring)
    -- Use pattern matching to ignore leading spaces or tabs
    return line:match("^%s*" .. substring) ~= nil
end

M.ends_with = function(line,substring)
    -- Use pattern matching to ignore leading spaces or tabs
    return line:match("%s*" .. substring .. "$") ~= nil
end

M.is_cursor_after = function(c)
    local line = vim.api.nvim_get_current_line()
    local _, col = unpack(vim.api.nvim_win_get_cursor(0))

    -- Get the character to the left of cursor
    local char_before = line:sub(col, col)

    return char_before == c
end

return M
-- EOP
